package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.SDic;
import com.fdb.efp.nls.service.vo.SDicVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:系统字典项表				<p>
 * @author fuzm
 * @date 2018-05-03
 */
public interface SDicDao {
	
	public int insertSDic(SDic sDic);
	
	public int deleteByPk(SDic sDic);
	
	public int updateByPk(SDic sDic);
	
	public List<SDic> queryByopttype(SDic sDic);
	
	public List<SDic> queryAllOwnerByPage(SDic sDic);
	
	/**
	 * 查询字典值
	 * @param opttype 
	 * @param likeEnname
	 * @param enname 
	 * @return
	 */
	public List<SDic> querySDicByCon(@Param("opttype") String opttype, @Param("likeEnname") String likeEnname,
                                     @Param("enname") String enname);

	public SDic queryOneByennameOpttype(SDic sDic);

	public SDic queryCnname(SDicVO sDicVO);
}